package cn.labelnet.android.roomdb.base.data.dao

import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Query
import cn.labelnet.android.roomdb.base.data.tables.BookTable

/**
 * Created by yuan on 02/08/2017.
 * book dao
 */
@Dao
interface BookDao {

    @Insert
    fun insertBook(book: BookTable)

    @Query("select * from book")
    fun selectBooks(): List<BookTable>
}